//
//  HomeLSModel.m
//  ZhuoxinAgriculture
//
//  Created by stone on 16/12/4.
//  Copyright © 2016年 stone. All rights reserved.
//

#import "HomeLSModel.h"

@implementation HomeLSModel


+ (NSDictionary *)objectClassInArray{
    return @{@"result" : [HomeLSResult class]};
}
@end
@implementation HomeLSResult
+ (NSDictionary *)mj_replacedKeyFromPropertyName {
    return @{@"ID" : @"id" };
}
-(void)setSequence:(NSString *)sequence{
    _sequence = sequence;
    
    NSString * tempName= [sequence stringByReplacingOccurrencesOfString:@".png" withString:@""];
    switch (tempName.integerValue) {
        case 1:
            _title = @"买农资";
            _subTitle = @"农业丰收好保证";
            _titleColorString = @"67b245";
            break;
        case 2:
            _title = @"学农技";
            _subTitle = @"更多课程技术";
            _titleColorString = @"f49e24";
            break;
        case 3:
            _title = @"投资理财";
            _subTitle = @"智收贷好收益";
            _titleColorString = @"da4c59";
            break;
        case 4:
            _title = @"找贷款";
            _subTitle = @"更多小额贷款";
            _titleColorString = @"007aff";
            break;
        case 5:
            _title = @"找农机";
            _subTitle = @"更多服务套餐";
            _titleColorString = @"8174c7";
            break;
        case 6:
            _title = @"生产计划";
            _subTitle = @"";
            _titleColorString = @"67b245";
            break;
        case 7:
            _title = @"我的组织";
            _subTitle = @"";
            _titleColorString = @"F49E24";
            break;
        default:
            break;
    }
}
@end


